package com.itheima.train.manager.order.fegin;

import com.itheima.train.manager.domain.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "itheima-train-manager-order-handler")
public interface OrderFeignClient {

    @RequestMapping(value = "/orderHandler/queryById/{orderId}")
    public abstract Order queryById(@PathVariable(value = "orderId") Long orderId) ;

    @RequestMapping(value = "/orderHandler/queryOrderInfo/{userId}/{trainNum}/{trainRidingDate}")
    public abstract Order queryOrderInfo(@PathVariable(value = "userId") String userId , @PathVariable(value = "trainNum") String trainNum , @PathVariable(value = "trainRidingDate") String trainRidingDate) ;
    
}